<template>
	<view class="container pageColor">
		<tn-nav-bar fixed customBack :alpha="isalpha" :bottomShadow="false" backgroundColor="#ffffff">
			<view class="tn-flex tn-flex-col-center tn-flex-row-center ">
				<text class="tn-text-lg tn-text-bold tn-color-black">个人中心</text>
			</view>
		</tn-nav-bar>
		<!-- <image src="https://jcsb2024.obs.cn-north-4.myhuaweicloud.com/xcxtb/bgimage.png" class="pageCover" mode=""> -->
		</image>
		<view class="pageContent" :style="{paddingTop: vuex_custom_bar_height + 'px'}">
			
			

		</view>
	</view>
</template>
<script>

	var app = getApp().globalData.config;
	export default {
		components: {
			
		},
		data() {
			return {
				userInfo: null,
				isalpha: true,
			}
		},
		watch: {
			'vuex_user': {
				handler(value) {
					// 如果sectionList发生改变，重新初始化选项列表信息
					
				},
				deep: true,
			}
		},
		onPageScroll(e) {
			if (e.scrollTop > 80) {
				this.isalpha = false
			} else {
				this.isalpha = true
			}
		},
		onLoad() {
			this.$nextTick(() => {
				// this.getUserInfo()
				// if(this.vuex_user){
				// 	this.getMessageNum()
				// 	this.getKuaishouList()
				// }
			})
		},
		methods: {
			
			
			/**
			 * 获取达人基本信息
			 */
			getUserInfo() {
				getTalentInfo().then(res => {
					if (res.code == 0) {
						this.userInfo = res.data
					}
				})
			},
			
			/**
			 * @function 进入页面
			 */
			goInfo(url) {
				if (this.vuex_user != null) {
					uni.navigateTo({
						url: url
					})
				} else {
					this.tool.toastTip('请先登录')
					setTimeout(function() {
						uni.navigateTo({
							url: '/pageMine/login'
						})
					}, 500);
				}

			},
		}
	}
</script>
<style lang="less" scoped>


	.container {
		width: 100%;
		font-family: PingFang SC, PingFang SC;

		.pageContent {
			padding: 0 26rpx 30rpx 26rpx;
			
		}
	}
</style>